//
//  UITableView+YJSuperExt.m
//  YJCategoriesGather
//
//  Created by YJHou on 2015/3/17.
//  Copyright © 2015年 侯跃军 houmanager@Hotmail.com. All rights reserved.
//

#import "UITableView+YJSuperExt.h"

@implementation UITableView (YJSuperExt)

- (void)yj_addTapDismissKeyboardGesture {
    UITapGestureRecognizer *gesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(endKeywindowKeyboard)];
    gesture.cancelsTouchesInView = YES;
    self.userInteractionEnabled = YES;
    [self addGestureRecognizer:gesture];
}

- (void)endKeywindowKeyboard {
    [[[UIApplication sharedApplication] keyWindow] endEditing:YES];
}

@end
